<?php
class Application_Form_Comment extends Zend_Form{
	public function init(){
		$this->setMethod('post');
		$this->addAttribs(array('class'=>'commentform'));
		$this->addElement('textarea','text',array(
			'required'		=> true,
			'filters'		=> array('HtmlEntities'),
			'cols' 			=> '70',
			'rows'			=> '24', 
		));
		$this->getElement('text')->setDecorators(array('ViewHelper'));
		$this->addElement('submit', 'submit', array(
			'ignore'	=> true,
			'label'		=> 'Post Comment'
		));
		$this->getElement('submit')->setDecorators(array('ViewHelper'));
		$this->addElement('hidden','news',array(
			'required'	=> true
		));
		$this->getElement('news')->setDecorators(array('ViewHelper'));
	}
}